<?php

namespace App\Http\Requests;

class MapAddRequest extends BasicRequest
{
    /**
     * Get the validation rules that apply to the request.
     *
     * @return array<string, mixed>
     */
    public function rules()
    {
        return [
            'name' => 'required',
            'type' => 'required',
            'lang_type' => 'required',
        ];
    }

    public function messages()
    {
        return [
            'name.required' => __('message.required',[
                'p' => __('key.map_name')
            ]),
            'lang_type.required' =>  __('message.required',[
                'p' => __('key.map_lang_type')
            ]),
            'type.required' => __('message.required',[
                'p' => __('key.map_type')
            ]),
        ];
    }

}
